

        <g:set var="entityName" value="${message(code: 'news.label', default: 'News')}" />
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <g:sortableColumn property="title" title="${message(code: 'news.title.label', default: 'Title')}" />
                        
                            <g:sortableColumn property="category" title="${message(code: 'news.category.label', default: 'Category')}" />
                        
                         
                            <th><g:message code="news.editor.label" default="Editor" /></th>
                   	    
                            <g:sortableColumn property="hit" title="${message(code: 'news.hit.label', default: 'Hit')}" />
                        
                            <g:sortableColumn property="createTime" title="${message(code: 'news.createTime.label', default: 'Create Time')}" />
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${newsInstanceList}" status="i" var="newsInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${newsInstance.id}">${fieldValue(bean: newsInstance, field: "title")}</g:link></td>
                        
                            <td>${fieldValue(bean: newsInstance, field: "category")}</td>
                         
                            <td>${fieldValue(bean: newsInstance, field: "editor")}</td>
                        
                            <td>${fieldValue(bean: newsInstance, field: "hit")}</td>
                        
                            <td><g:formatDate date="${newsInstance.createTime}" /></td>
                             <td class="operate"> 
                                    <x:operate width="100"> 
                                            <g:link  action="edit" id="${newsInstance.id}" ><g:message code="default.button.edit.label" default="修改" /></g:link>
                                            <g:link  action="delete" id="${newsInstance.id}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"><g:message code="default.button.delete.label" default="delete" /></g:link>
                                     </x:operate> 
                            </td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${newsInstanceTotal}" />
            </div>
